package com.kanche.bigbaby.collection.domain;

//import com.kkche.bss.collection.ThirdPartyWebsite;

import java.io.Serializable;

/**
 * Created by nealmi on 6/24/14.
 */
public class ShareAccount implements Serializable {
    private String id;
    private String website; //#网站名称（58.com,che168.com）
    private String accountType; //#帐户类型，可以是“private”或者是“public”，只有private帐号才有username和password
    private String username; //#网站的用户名
    private String password; //#网站的密码
    private transient boolean selected = true;
    private boolean available = true;
    private String comment;

    public ShareAccount() {
    }

    public ShareAccount(String id) {
        this.id = id;
    }

    public ShareAccount(String website, String accountType) {
        this.website = website;
        this.accountType = accountType;
    }

    public ShareAccount(String id, String website, String accountType) {
        this.id = id;
        this.website = website;
        this.accountType = accountType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

//    public boolean isPrivate() {
//        return ThirdPartyWebsite.Credential.TYPE_PRIVATE.equalsIgnoreCase(accountType);
//    }
//
//    public boolean isPublic() {
//        return ThirdPartyWebsite.Credential.TYPE_PUBLIC.equalsIgnoreCase(accountType);
//    }
}
